home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 44 lines | [TEXT/GEOL] |
- Item 8455861 19-Dec-89 12:29
-
- From: ANIMATRIXDEV Animatrix, David Goldman,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Scrollers and clipping prob.
-
-
- Hi!
-
- I have a TGridView placed inside a TScroller. I would like to allow the user to
- drag a cell of the gridview and drop it on top of another cell. This part is
- working fine except for the fact that the gray outline that is being dragged is
- clipped to the gridviews bounds. I have set fViewConstrain in my command object
- to false thinking that this would allow the user to drag the outline anywhere
- INSIDE the window. If the window is larger than the gridview the fact that the
- outline being dragged disappears at some arbitrary ( to the user ) position in
- the white content area of the window is disconcerting.
-
- I tried to FocusOnSuperView in my TrackFeedBack method. All is well as far as
- the clipping is concerned, EXCEPT that the coordinates passed to the
- TrackFeedBack method are not offset correctly by the scrolled amount for the
- gridview. This causes the hotspot of the cursor and the outline to be offset by
- the scrolled amount - producing another disconcerting problem for the end user.
-
- I also tried setting the cliprect to be 'wide open' in the TrackFeedback method
- and NOT focussing on the superview. Unfortunately the scroll bars can now get
- stomped on.
-
- It seems to me that I am missing something very obvious. It is not that I want
- to focus on the desktop ( which I understand is not working in 2.0b9 ), nor
- that I want to focus on any view other than the one with which I am concerned.
- I just want to 'pretend' that the gridview takes up all the white space in the
- window, without disturbing the relationship between the number of cells and the
- scroll bars.
-
- Any ideas?? Thanks for your time.
-
-
- regards
- Steven Marcus@AnimtrixDev.
-
-